package com.entity;


import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class Rechargerule {

  private Integer id;
  private String name;
  private double coefficient;
  @JSONField(format = "yyyy-MM-dd")
  private java.sql.Date createdTime;
  @JSONField(format = "yyyy-MM-dd")
  private java.sql.Date endTime;
  private Integer status;
  private Integer startMoney;

  public Rechargerule() {
  }

  public Rechargerule(Integer id, String name, double coefficient, Date createdTime, Date endTime, Integer status, Integer startMoney) {
    this.id = id;
    this.name = name;
    this.coefficient = coefficient;
    this.createdTime = createdTime;
    this.endTime = endTime;
    this.status = status;
    this.startMoney = startMoney;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public double getCoefficient() {
    return coefficient;
  }

  public void setCoefficient(double coefficient) {
    this.coefficient = coefficient;
  }


  public java.sql.Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(java.sql.Date createdTime) {
    this.createdTime = createdTime;
  }


  public java.sql.Date getEndTime() {
    return endTime;
  }

  public void setEndTime(java.sql.Date endTime) {
    this.endTime = endTime;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getStartMoney() {
    return startMoney;
  }

  public void setStartMoney(Integer startMoney) {
    this.startMoney = startMoney;
  }

  @Override
  public String toString() {
    return "Rechargerule{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", coefficient=" + coefficient +
            ", createdTime=" + createdTime +
            ", endTime=" + endTime +
            ", status=" + status +
            ", startMoney=" + startMoney +
            '}';
  }
}
